package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@TableName("cooker")
@Data
public class Cooker {
    @TableId(value="cookerid",type= IdType.AUTO)       //自增，value里是主键名称
    private Integer cookerid;
    private  String cookername;
    private  String password;
    private  Integer age;
    private  String sex;
    private  String phonenumber;
    private String username;
}
